package com.moore.model;

/**
 * 用户实体类
 * @author Moore
 * @version 1.0
 * @since 2024/08/06 11:10
 */
public class User {
    // id
    private int id;
    // 账号
    private String account;
    // 密码
    private String password;
    // 昵称
    private static String name;
    // 头像
    private String avatar;
    // 余额
    private final double balance;
    // 订单
    private final int orders;
    // 状态
    private final int state;
    // 创建时间
    private final String createTime;
    // 更新时间
    private final String updateTime;

    public User(int id, String account, String password, String name, String avatar, double balance, int orders, int status, String createTime, String updateTime) {
        this.id = id;
        this.account = account;
        this.password = password;
        User.name = name;
        this.avatar = avatar;
        this.balance = balance;
        this.orders = orders;
        this.state = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public static String getName() {
        return name;
    }

    public void setName(String name) {
        User.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public double getBalance() {
        return balance;
    }

    public int getOrders() {
        return orders;
    }

    public int getState() {
        return state;
    }

    public String getCreateTime() {
        return createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

}
